<?php

class DAO {
    
    private $db_hostname = 'localhost';
    private $db_database = 'dev1';
    private $db_username = 'root';
    private $db_password = '';
    
    public function set_database() {
        
        $db_server = mysql_connect($this->db_hostname, $this->db_username, $this->db_password);
        
        if(!$db_server) {
            header("Location: ../admViews/DbFailure.php");
            die();
        }
        
        $db_database = mysql_select_db($this->db_database);
        
        if(!$db_database) {
            header("Location: ../admViews/DbFailure.php");
            die();
        }
        
    }
        
}

?>